<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <title>详情页原型</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family:
          -apple-system,
          BlinkMacSystemFont,
          'Helvetica Neue',
          Helvetica,
          Segoe UI,
          Arial,
          Roboto,
          'PingFang SC',
          'miui',
          'Hiragino Sans GB',
          'Microsoft Yahei',
          sans-serif;
        background-color: #f7f8fa;
        color: #323233;
        line-height: 1.5;
      }

      .detail-header {
        position: relative;
        height: 44px;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .back-btn {
        position: absolute;
        left: 15px;
        background: none;
        border: none;
        font-size: 18px;
      }

      .detail-title {
        font-size: 16px;
        font-weight: bold;
      }

      .action-btn {
        position: absolute;
        right: 15px;
        background: none;
        border: none;
        font-size: 18px;
      }

      .detail-page {
        padding: 15px;
        padding-bottom: 70px;
      }

      .detail-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
        overflow: hidden;
      }

      .card-header {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
      }

      .card-title {
        font-size: 16px;
        font-weight: bold;
      }

      .card-content {
        padding: 15px;
      }

      .info-row {
        display: flex;
        margin-bottom: 12px;
      }

      .info-row:last-child {
        margin-bottom: 0;
      }

      .info-label {
        width: 100px;
        font-size: 14px;
        color: #666;
      }

      .info-value {
        flex: 1;
        font-size: 14px;
      }

      .status-tag {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 12px;
        margin-left: 5px;
      }

      .status-active {
        background: #e8f5e9;
        color: #4caf50;
      }

      .status-pending {
        background: #fff8e1;
        color: #ff9800;
      }

      .status-expired {
        background: #f5f5f5;
        color: #9e9e9e;
      }

      .detail-tabs {
        display: flex;
        background: white;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .tab-button {
        flex: 1;
        padding: 12px;
        text-align: center;
        background: none;
        border: none;
        font-size: 14px;
        color: #666;
        position: relative;
      }

      .tab-button.active {
        color: #1989fa;
        font-weight: bold;
      }

      .tab-button.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20%;
        right: 20%;
        height: 3px;
        background: #1989fa;
        border-radius: 3px;
      }

      .timeline {
        padding: 0 10px;
      }

      .timeline-item {
        position: relative;
        padding-left: 20px;
        padding-bottom: 20px;
      }

      .timeline-item:last-child {
        padding-bottom: 0;
      }

      .timeline-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 5px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #1989fa;
        z-index: 1;
      }

      .timeline-item::after {
        content: '';
        position: absolute;
        left: 4px;
        top: 15px;
        bottom: 0;
        width: 2px;
        background: #e8e8e8;
      }

      .timeline-item:last-child::after {
        display: none;
      }

      .timeline-time {
        font-size: 12px;
        color: #999;
        margin-bottom: 5px;
      }

      .timeline-content {
        font-size: 14px;
      }

      .file-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }

      .file-item {
        width: calc(50% - 5px);
        background: #f5f5f5;
        border-radius: 4px;
        padding: 10px;
        display: flex;
        align-items: center;
      }

      .file-icon {
        font-size: 24px;
        margin-right: 10px;
        color: #1989fa;
      }

      .file-info {
        flex: 1;
        overflow: hidden;
      }

      .file-name {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .file-size {
        font-size: 12px;
        color: #999;
      }

      .action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 10px 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
      }

      .action-button {
        flex: 1;
        padding: 10px;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        margin: 0 5px;
      }

      .btn-primary {
        background: #1989fa;
        color: white;
      }

      .btn-default {
        background: #f5f5f5;
        color: #666;
      }
    </style>
  </head>
  <body>
    <div class="detail-header">
      <button class="back-btn">←</button>
      <div class="detail-title">合同详情</div>
      <button class="action-btn">⋮</button>
    </div>

    <div class="detail-page">
      <div class="detail-card">
        <div class="card-header">
          <div class="card-title">服务合同 #SC2023001</div>
        </div>
        <div class="card-content">
          <div class="info-row">
            <div class="info-label">合同状态</div>
            <div class="info-value">
              生效中
              <span class="status-tag status-active">生效中</span>
            </div>
          </div>
          <div class="info-row">
            <div class="info-label">客户名称</div>
            <div class="info-value">广州某科技有限公司</div>
          </div>
          <div class="info-row">
            <div class="info-label">签约日期</div>
            <div class="info-value">2023-01-15</div>
          </div>
          <div class="info-row">
            <div class="info-label">到期日期</div>
            <div class="info-value">2024-01-14</div>
          </div>
          <div class="info-row">
            <div class="info-label">合同金额</div>
            <div class="info-value">¥50,000.00</div>
          </div>
          <div class="info-row">
            <div class="info-label">付款状态</div>
            <div class="info-value">已付款 ¥30,000.00 (60%)</div>
          </div>
          <div class="info-row">
            <div class="info-label">负责人</div>
            <div class="info-value">张经理</div>
          </div>
        </div>
      </div>

      <div class="detail-tabs">
        <button class="tab-button active">合同进度</button>
        <button class="tab-button">相关文件</button>
        <button class="tab-button">关联案件</button>
      </div>

      <div class="detail-card">
        <div class="card-content">
          <div class="timeline">
            <div class="timeline-item">
              <div class="timeline-time">2023-01-15 10:30</div>
              <div class="timeline-content">合同已签署</div>
            </div>
            <div class="timeline-item">
              <div class="timeline-time">2023-01-20 14:15</div>
              <div class="timeline-content">首付款已收到 ¥20,000.00</div>
            </div>
            <div class="timeline-item">
              <div class="timeline-time">2023-03-10 09:45</div>
              <div class="timeline-content">第二期付款已收到 ¥10,000.00</div>
            </div>
            <div class="timeline-item">
              <div class="timeline-time">2023-06-15 16:00</div>
              <div class="timeline-content">第三期付款待收 ¥20,000.00</div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="action-bar">
      <button class="action-button btn-default">下载合同</button>
      <button class="action-button btn-primary">在线支付</button>
    </div>
  </body>
</html>
